package com.le.tester.book.flightjava8.lambda;

import cn.hutool.core.lang.func.VoidFunc0;

/**
 * createTime：2025-06-27 10:46
 * description：letter
 */
public class Letter {
    public static String addHeader(String text) {
        return "..." + text;
    }

    public static String addFooter(String text) {
        return text + "...";
    }

    public static String checkSpelling(String text) {
        return text.replaceAll("lab", "lambda");
    }

    public static void main(String[] args) {
        FunctionLetter<String, String> letterHeader = Letter::addFooter;
        //letterHeader.andThen(Letter::addFooter)
    }
}
